﻿@* Ui层项目 - 编辑组件文件 *@
@using Util.Generators.Helpers
@model Util.Generators.Contexts.EntityContext
@{
    var service = new GenerateService( Model );
    var description = $"{Model.Description}编辑页";
}
import { Component,ChangeDetectionStrategy, Injector } from '@@angular/core';
import { environment } from "@@env/environment";
import { EditComponentBase } from "util-angular";
import { @service.GetClientViewModelClassName() } from './model/@service.GetClientViewModelFileName()';

/**
 * @description
 */
@@Component( {
    selector: '@service.GetClientEntityFileName()-edit',
    changeDetection: ChangeDetectionStrategy.OnPush,
    templateUrl: './html/@(service.GetClientEditFileName()).html'
} )
export class @service.GetClientEditClassName() extends EditComponentBase<@service.GetClientViewModelClassName()> {
    /**
     * 创建模型
     */
    protected createModel() {
        let result = new @(service.GetClientViewModelClassName())();
        return result;
    }

    /**
     * 获取基地址
     */
    protected getBaseUrl() {
        return "@service.GetClientEntityName()";
    }
}